package com.mc2.docapp.disabilityassessmenttool.SpinalAffection;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/*@Data
@AllArgsConstructor
@NoArgsConstructor*/
public class C_kyphosis extends RealmObject {
    @PrimaryKey
    public int id;
    private double kyphosisValue = 0;
    private double torsoImbalance = 0;
    private double innerCalculations = 0;

    public C_kyphosis(int id, double kyphosisValue, double torsoImbalance, double innerCalculations) {
        this.id = id;
        this.kyphosisValue = kyphosisValue;
        this.torsoImbalance = torsoImbalance;
        this.innerCalculations = innerCalculations;
    }

    public void calc(C_kyphosis dt) {
        dt.setInnerCalculations(dt.getKyphosisValue() + dt.getTorsoImbalance());
    }

    public C_kyphosis() {
    }

    public C_kyphosis strip(C_kyphosis dt) {
        return new C_kyphosis(dt.getId(), dt.getKyphosisValue(),dt.getTorsoImbalance(), dt.getInnerCalculations());
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public double getKyphosisValue() {
        return kyphosisValue;
    }

    public void setKyphosisValue(double kyphosisValue) {
        this.kyphosisValue = kyphosisValue;
    }

    public double getTorsoImbalance() {
        return torsoImbalance;
    }

    public void setTorsoImbalance(double torsoImbalance) {
        this.torsoImbalance = torsoImbalance;
    }

    public double getInnerCalculations() {
        return innerCalculations;
    }

    public void setInnerCalculations(double innerCalculations) {
        this.innerCalculations = innerCalculations;
    }
}
